<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>库存管理系统</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/back/css/common.css" />
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/back/css/main.css" />
</head>

<body>
<%@include file="../common/header.jsp"%>

<div class="container clearfix">
    <%@include file="../common/menu.jsp"%>

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="http://localhost:8080/back/index.jsp">首页</a><span
                    class="crumb-step">&gt;</span><a class="crumb-name" href="../supplier/getAllSupplier">供应商管理</a><span
                    class="crumb-step">&gt;</span><span>修改供应商</span></div>
            <c:if test="${not empty error}">
                <p style="color: red">${error}</p>
            </c:if>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="../supplier/editHandler.do" method="post" id="myform" name="myform">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <input type="hidden" name="supplierId" value="${supplier.supplierId}">
                        <tr>
                            <%--供应商负责人   functionaryName--%>
                            <th width="120"><i class="require-red">*</i>供应商负责人：</th>
                            <td>
                                <label for="functionaryName"></label>
                                <input class="common-text required" id="functionaryName" name="functionaryName"
                                       size="50" required value="${supplier.functionaryName}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>性别：</th>
                            <td>
                                <label for="gender">选择性别:</label>
                                <select id="gender" required value="${supplier.functionaryGender}" name="functionaryGender" >
                                    <option value="男">男</option>
                                    <option value="女">女</option>
                                    <option value="其他">其他</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <%--供应商负责人   functionaryName--%>
                            <th width="120"><i class="require-red">*</i>供应商公司：</th>
                            <td>
                                <label for="functionaryName"></label>
                                <input class="common-text required"  name="supplierCompany"
                                       size="50" required value="${supplier.supplierCompany}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>邮箱：</th>
                            <td>
                                <label for="email"></label>
                                <input class="common-text required" id="email" name="email"
                                       size="50" required value="${supplier.email}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>联系方式：</th>
                            <td>
                                <label for="phone"></label>
                                <input class="common-text required" id="phone" name="phoneNumber"
                                       size="50" required value="${supplier.phoneNumber}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>网址：</th>
                            <td>
                                <label for="url"></label>
                                <input class="common-text required" id="url" name="websiteGide"
                                       size="50" required value="${supplier.websiteGide}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>通讯住址：</th>
                            <td>
                                <label for="address"></label>
                                <input class="common-text required" id="address" name="mailingAddress"
                                       size="50" required value="${supplier.mailingAddress}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>备注：</th>
                            <td>
                                <label for="remark"></label>
                                <input class="common-text required" id="remark" name="remark"
                                       size="50" required value="${supplier.remark}" type="text">
                                <span style="color: red;"></span>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="修改" type="submit">
                                <input class="btn btn6" onClick="history.go(-1)" value="取消" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>



                </form>
            </div>
        </div>
    </div>
</div>
</body>

</html>